﻿
@{
    ViewBag.Title = "EmployeePageList";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}
@section css{
    <link rel="stylesheet" href="~/assets/portal/assets/css/common.css" />
    <link rel="stylesheet" href="~/bussiness/js/base/reset.css" />
    <style>
        .ant-select-arrow, .ant-select-clear {
            position: absolute;
            right: 10px;
        }
    </style>
}
<div id="SafetySystemUR" class="font-['SourceHanSansSC']">
    <a-style-provider hash-priority="high">
        <a-config-provider :locale="vlocale">

            <header class="px-5 box-border">
                <div class="flex items-center relative  ">
                    <div class="w-full h-[48px] text-[13px]  rounded-lg mx-auto my-[10px]  bg-white  text-[#888888] text-3xl flex items-center px-10">

                        <div class="w-22 h-22 bg-blue-200 mr-5"> <img class="w-full h-full cursor-pointer" v-on:click="SafetySystemURParams.vvback()" src="~/Assets/nimgs/exit.png" alt="返回" /></div>
                        <span class="text-[]">体系运行<span class="mx-2">/</span>危险四表<span class="mx-2">/</span><span class="text-[#424758] text-[15px]">不可接受风险</span> </span>
                    </div>


                </div>
                <a-tabs v-on:change="SafetySystemURParams.tchange" type="card" style="height: 100%; width: 100%; padding: 10px 30px; box-sizing: border-box" v-model:active-key="SafetySystemURParams.cIndex.value" class="w-full h-[48px] text-[13px] rounded-lg  bg-white">
                    <a-tab-pane v-for="(e,i) in SafetySystemURParams.tabList.value" :key="e.value" :tab="e.label">

                        <template v-if="SafetySystemURParams.cIndex.value==1">
                            <div class="w-full h-min-[108px] bg-white py-8">
                                <div class="mb-5 text-[16px] font-bold text-black">筛选条件</div>
                                <a-row>
                                    <a-form layout="inline"
                                            :model="SafetySystemURParams.queryParams.value">
                                        <a-form-item label="标题">

                                            <a-input v-model:value="SafetySystemURParams.queryParams.value.Title" placeholder="请输入标题" />
                                        </a-form-item>
                                        <a-form-item label="部门">
                                            <a-select allow-clear
                                                      placeholder="请选择部门"
                                                      show-search
                                                      :filter-option="SafetySystemURParams.filterOption"
                                                      v-model:value="SafetySystemURParams.queryParams.value.DepartmentId"
                                                      :options="SafetySystemURParams.deptList.value"
                                                      style="width:200px">

                                            </a-select>
                                        </a-form-item>
                                        <a-form-item label="年度">
                                            <a-select allow-clear
                                                      placeholder="请选择年度"
                                                      show-search
                                                      :filter-option="SafetySystemURParams.filterOption"
                                                      v-model:value="SafetySystemURParams.queryParams.value.Years"
                                                      :options="SafetySystemURParams.sYearsList.value"
                                                      style="width:200px">
                                            </a-select>
                                        </a-form-item>
                                        <a-form-item label="类型">
                                            <a-select allow-clear
                                                      show-search
                                                      :filter-option="SafetySystemURParams.filterOption"
                                                      v-model:value="SafetySystemURParams.queryParams.value.Type"
                                                      :options="SafetySystemURParams.typelist.value"
                                                      style="width:200px">
                                            </a-select>
                                        </a-form-item>
                                        <a-form-item>
                                            <a-col><a-button v-on:click="SafetySystemURParams.getTableList(true)" type="primary">查询</a-button></a-col>
                                        </a-form-item>
                                    </a-form>




                                </a-row>
                                <div class="flex w-full mt-10">
                                    <a-card :bordered="true" class="w-full  mt-12">
                                        <template #title>
                                            <div class="w-full flex justify-between items-center">
                                                <div class="flex items-center"> <div>不可接受风险</div> <div class="ml-7"><a-tag color="#108ee9">总数:{{ SafetySystemURParams.pagination.value.total }}</a-tag></div></div>
                                                <a-button v-on:click="SafetySystemURParams.toAdd(`UR|${SafetySystemURParams.urlinfo.value.module}`)" type="primary">新增</a-button>
                                            </div>



                                        </template>


                                        <a-table v-on:change="SafetySystemURParams.handleTableChange" :loading="SafetySystemURParams.pagination.value.loading" :pagination="SafetySystemURParams.pagination.value" :data-source="SafetySystemURParams.dataSource2.value" :columns="SafetySystemURParams.columns2.value">

                                        </a-table>

                                    </a-card>

                                </div>

                            </div>
                        </template>

                    </a-tab-pane>
                </a-tabs>



                <a-modal v-model:open="SafetySystemURParams.popShow.value" width="80%" :title="SafetySystemURParams.popTitle.value" v-on:ok="SafetySystemURParams.handleOk">
                    <a-spin :spinning="SafetySystemURParams.Pagination.value.loading" tip="加载中，请耐心等待..." />

                </a-modal>
            </header>

        </a-config-provider>
    </a-style-provider>
</div>
@section Js{
    <script src="~/bussiness/js/base/tailwind.js"></script>
    <script type="module">
        import Composition from '../../bussiness/js/pg/SafetySystem/UR.js?v=@DateTime.Now.ToString("yyyyMMddHHmmss")'
        import localeValues from '../../Bussiness/js/base/es/locale/zh_CN.js'
        singalApp('SafetySystemUR', Composition, localeValues)
    </script>
}
